package com.small.base.test.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户账号表(UserAccount)实体类
 *
 * @author makejava
 * @since 2020-06-18 17:57:29
 */
@Data
@ToString
@Entity
@Table(name = "user_account")
@ApiModel("用户账号表")
public class UserAccount implements Serializable {
    private static final long serialVersionUID = 130275884469221007L;
    /**
     * id
     */
    @ApiModelProperty("id")
    @Id
    @Column(name = "id")
    private String id;
    /**
     * 姓名
     */
    @ApiModelProperty("姓名")
    @Column(name = "nick_name")
    private String nickName;
    /**
     * 帐号
     */
    @ApiModelProperty("帐号")
    @Column(name = "account")
    private String account;
    /**
     * 密码
     */
    @ApiModelProperty("密码")
    @Column(name = "password")
    private String password;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    @Column(name = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 创建用户ID
     */
    @ApiModelProperty("创建用户ID")
    @Column(name = "created_id")
    private String createdId;
    /**
     * 修改用户ID
     */
    @ApiModelProperty("修改用户ID")
    @Column(name = "updated_id")
    private String updatedId;
    /**
     * 用户账号状态
     */
    @ApiModelProperty("用户账号状态 1正常、2停用、3封号、4删除")
    @Column(name = "user_account_status")
    private String userAccountStatus;


}